﻿@*@model IEnumerable<Business.DbConnect.Motorbike>*@
@model PagedList.IPagedList<Business.DbConnect.Motorbike>
<p>
    @*@Html.ActionLink("Thêm xe", "Create", "MotorBike", new { Id = "Create", @class = "createLink", })*@
</p>
<table id="rounded-corner">
    <tr>
        <th>
            Biển số
        </th>
        <th>
            Loại xe
        </th>
        <th>
            Ghi chú
        </th>
        <th>
            Sửa
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.Plate)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.MotorType1.Description)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Comment)
            </td>
            @*@Html.ActionLink("Sửa", "Edit", new { plate = item.Plate }, new { @class = "edit-class", plate = item.Plate })
                |
                @Html.ActionLink("Chi tiết", "Details", new { plate = item.Plate }, new { @class = "detail-class", plate = item.Plate })*@
            <td>
                @*@Html.ActionLink("Sửa", "Edit", new { plate = item.Plate }, new { @class = "edit-class", plate = item.Plate })*@
                <a href="#" lId="@item.Plate" class="edit-class">
                    <img src="@Url.Content("~/Content/in-admin-panel/images/user_edit.png")"/>
                </a>
            </td>
        </tr>
    }
</table>